function tableInit() {
    $('#bootstrap-table').bootstrapTable({
        columns: [{
            field: 'number',
            title: '序号',
            formatter: function (value, row, index) {

                return index + 1;
            }
        }, {
            field: 'time',
            title: '上传时间'

        }, {
            field: 'report',
            title: '报告编号'
        }, {
            field: 'viewport',
            title: '点击查看报告',
            formatter: function (value, row, index) {
                var actions = [];
                actions.push('<a class="" href="#">' + value[0] + '</a>&nbsp ' +
                    '<a class="" href="#">' + value[1] +
                    '</a>&nbsp');
                return actions.join('');
            }
        }],
        data: [{
            number: '离线',
            time: '2019-12-11',
            report: 'TT5129007',
            viewport: ['查看详情', '防伪二维码']
        }, {
            number: '离线',
            time: '2019-12-11',
            report: 'TT5129007',
            viewport: ['查看详情', '防伪二维码']
        }, {
            number: '离线',
            time: '2019-12-11',
            report: 'TT5129007',
            viewport: ['查看详情', '防伪二维码']
        }, {
            number: '离线',
            time: '2019-12-11',
            report: 'TT5129007',
            viewport: ['查看详情', '防伪二维码']
        }]
    })
}